package com.lky.service.impl;

import com.lky.domain.Planeinformation;
import com.lky.domain.Planetype;
import com.lky.mapper.PlaneinformationMapper;
import com.lky.mapper.PlanetypeMapper;
import com.lky.service.PlaneinformationService;
import com.lky.service.PlanetypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 名称:PlanetypeServiceImpl
 * 描述:PlanetypeService的实现类
 *
 * @version 1.0
 * @author:likaiyang
 * @datetime:2023-11-22 20:21
 */
@Service
public class PlaneinformationServiceImpl implements PlaneinformationService{

    @Autowired(required = false)
    private PlaneinformationMapper planeinformationMapper;

    @Override
    public Planeinformation findPlaneinformationById(Integer id) {
        return planeinformationMapper.findPlaneinformationById(id);
    }

    @Override
    public List<Planeinformation> findAllPlaneinformation() {
        return planeinformationMapper.findAllPlaneinformation();
    }

    @Override
    public int insertPlaneinformation(Planeinformation planeinformation) {
        return planeinformationMapper.insertPlaneinformation(planeinformation);
    }

    @Override
    public int updatePlaneinformationById(Planeinformation planeinformation) {
        return planeinformationMapper.updatePlaneinformationById(planeinformation);
    }

    @Override
    public int deletePlaneinformationById(Integer id) {
        return planeinformationMapper.deletePlaneinformationById(id);
    }

    @Override
    public List<Planeinformation> findPlaneinformationByStr(String str) {
        return planeinformationMapper.findPlaneinformationByStr(str);
    }

    @Override
    public List<Planeinformation> findPlaneinformationByTypeid(Integer id) {
        return planeinformationMapper.findPlaneinformationByTypeid(id);
    }
}
